<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="c_jstl"%>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en">
<!--<![endif]-->

<head>

<!-- Basic Page Needs
  ================================================== -->
<meta charset="utf-8">
<title>7 you 博客发表</title>
<meta name="description" content="">
<meta name="author" content="">
<!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

<!-- Mobile Specific Metas
  ================================================== -->
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">

<!-- CSS
  ================================================== -->
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/screen.css">
<link rel="stylesheet" href="css/mediaelementplayer.css" />
<!--[if IE 7]>
        <link rel="stylesheet" href="stylesheets/ie7.css">
    <![endif]-->

<!-- Favicons
    ================================================== -->
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72"
	href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114"
	href="images/apple-touch-icon-114x114.png">

<!-- Fonts
    ================================================== -->
<link
	href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,700italic,300,300italic'
	rel='stylesheet' type='text/css'>

<!-- Scripts
    ================================================== -->
<script src="js/jquery-1.7.min.js" type="text/javascript"></script>
<script src="js/jquery.easing.1.3.js" type="text/javascript"></script>
<script src="js/jquery.animate-colors-min.js" type="text/javascript"></script>
<script src="js/ddsmoothmenu.js" type="text/javascript"></script>
<script src="js/jquery.cssAnimate.mini.js" type="text/javascript"></script>
<script src="js/jquery.fitvids.js" type="text/javascript"></script>
<script src="js/jquery.flexslider-min.js" type="text/javascript"></script>
<script src="js/jquery.prettyPhoto.js" type="text/javascript"></script>
<script src="js/mediaelement-and-player.min.js"></script>
<script src="js/screen.js" type="text/javascript"></script>

<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
</head>

<body>

	<!-- Site Backgrounds
    ================================================== -->

	<!-- Change to class="poswrapheaderline wide" and class="headerline full" for a full-width header line -->
	<div class="poswrapheaderline">
		<div class="headerline"></div>
	</div>
	<!-- Remove or uncomment depending on if you want a background image or tile -->
	<div class="tiledbackground"></div>
	<!--img src="images/bg.jpg" alt="" id="background" /-->
	<!-- Change to class="poswrapper wide" and class="whitebackground full" for a full-width site background -->
	<div class="poswrapper">
		<div class="whitebackground"></div>
	</div>

	<div class="container main portfolio4column">

	<!-- Header | Logo, Menu
    ================================================== -->
	<jsp:include page="head.jsp" />

	<!-- Page Title
	================================================== -->

	<div class="pagetitle">
		<div class="pagetitleholder">
			<h1>博客发表</h1>
		</div>
		<div class="socialholder">
				<ul class="socialicons">
				<c:choose>
					<c:when test="${!empty user}">
						<li>Hi!</li>
						<li><a href="UserInfo?id=${user.getID() }">${user.getID() }</a></li>
					</c:when>	
					<c:otherwise>
						<li><a href="login.jsp" class="linkbg">登陆</a></li>
						<li><a href="regist.jsp" class="linkbg">注册</a></li>
					</c:otherwise>
				</c:choose>				
				</ul>
			</div>
	</div>

	<!-- Body Content
    ================================================== -->
	<div class="sixteen columns row textblock fullblog sideview">
			<h1>写日志</h1>
			<div id="alerts">
				<noscript>
					<p>
						<strong>CKEditor requires JavaScript to run</strong>. In a browser
						with no JavaScript support, like yours, you should still see the
						contents (HTML data) and you should be able to edit it normally,
						without a rich editor interface.
					</p>
				</noscript>
			</div>
			<form action="AddBlog" method="post">
				<p>
					<label for="title"> 标题: </label> <input id="title" name="title"
						type="text" size="60%" value="" />
				</p>
				<label for="editor1"> 内容: </label>
				<textarea cols="80" id="blogcontent" name="content" rows="10" style="min-width: 600px"></textarea>
				<script type="text/javascript">
					//<![CDATA[

					CKEDITOR.replace('editor1', {
						fullPage : true,
						extraPlugins : 'docprops'
					});

					//]]>
				</script>
				<p>
					<input type="submit" value=" 保 存" />
				</p>
			</form>
		</div>
	<div class="clear"></div>

	<!-- Bottom Padding Adjust
    ================================================== -->
	<div class="sixteen columns bottomadjust"></div>

	</div>
	<!-- container -->

	<!-- Footer
    ================================================== -->
	<jsp:include page="foot.jsp" />
	<!-- End Document
	================================================== -->
	<div style="display: none">
		<script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540'
			language='JavaScript' charset='gb2312'></script>
	</div>
</body>
</html>